<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>购物车</title>
<link rel="stylesheet" type="text/css" href="CSS/CSSbuy.css" />
</head>

<body>
<?php
include "head.php";

?>
<div id="tbody" style="width: 1100px; height: auto; margin: 0 auto; border: 0px solid #000">

<div id="buypro">
      <table id="bptable1">
          <tr class="pad5">
              <td><strong>商品名称</strong></td><td><strong>规格属性</strong></td><td><strong>单价</strong></td><td><strong>数量</strong></td><td><strong>小计</strong></td>
          </tr>
          
 <?php
 if(@$_SESSION['userid'] == ''){
				echo "<meta http-equiv=\"refresh\" content=\"0.5;url=user/login.php\">";
			}else{
				@$userid = $_SESSION['userid'];
    $res = $bb->findprocar(@$userid);
				if($probuy != ''){
				//$num = count($probuy);
				//for($i=0; $i < $num; $i++){
					while($probuy= mysqli_fetch_array($res, MYSQLI_ASSOC)){
?>
          
          <tr>
              <td style=" width:300px;"><?php echo @$probuy['proname']; ?></td>
              <td style=" width:200px;"><?php echo @$probuy['ex01']; ?><br><?php echo @$probuy['ex02']; ?></td>
              <td style=" width:100px;">99</td><!--商品价格忘记传-->
              <td style=" width:200px;" id="bpsl">
                    
                    <table id="ulbp">
                        <tr><!--数量更改提交后更新数据库-->
                            <td style=" width: 25px;"></td><td><img src="img/ddjian.png" /></td><td><input type="text" id="shuliang" value="<?php echo @$probuy['shuliang']; ?>"></td><td><img src="img/ddjia.png" /></td>
                        </tr>
                    </table>
             
              </td>
              <td style=" width:150px;">99</td><!--钱计算-->
          </tr>
          <?php }} }?>
      </table>
      
      
      <button>结算</button><!--点击后更新数据表prosold 数量，同时跳转到buy.php-->
  </div>




<?php
include "foot.php";
?>
</div>
</body>
</html>